import React, { Component } from 'react';
import { withRouter } from 'react-router-dom'
import { Container } from './style'
import searchIcon from '../../../assets/image/search.png'

@withRouter
class Search extends Component {
    render() {
        return (
            <Container onClick={() => {
                console.log(this.props.history);
            }}>
                <img src={searchIcon} alt="" />
                <span>想吃什么就搜什么~~</span>
            </Container>
        );
    }
}

export default Search;
